import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;

// import { post, get,put,} from './utils/fetch'


// Vue.prototype.yGet = get
// Vue.prototype.yPost = post
// Vue.prototype.yPut= put
// Vue.prototype.yDel = del


import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
Vue.directive('focus',{
  inserted:function(el){
    el.focus()
  }
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
